package ru.dadle8.model.bot.entity;

import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
public class ContentMessage implements Comparable<ContentMessage> {
    private int actionId;
    private int order;
    private String message;
    private int type;
    private List<VideoContent> videos = new ArrayList<>();

    public void addVideo(VideoContent video) {
        this.getVideos().add(video);
    }

    @Override
    public int compareTo(ContentMessage o) {
        return Integer.compare(this.order, o.order);
    }
}
